<template>
  <div class="chart-main-container">
    <div class="chart-main-title">40米铝合金船监控系统</div>
    <div class="chart-main-content">
      <div class="model-box model-left">
        <Chart1 />
        <Chart2 />
        <Chart3 />
      </div>
      <div class="model-box model-center">
        <Chart5 v-bind="$attrs" v-on="$listeners" />
        <Chart4 />
      </div>
      <div class="model-box model-right">
        <Chart6 />
        <Chart7 />
        <Chart8 />
      </div>
    </div>
  </div>
</template>

<script>
import Chart1 from "./components/chart1/index";
import Chart2 from "./components/chart2/index";
import Chart3 from "./components/chart3/index";
import Chart4 from "./components/chart4/index";
import Chart5 from "./components/chart5/index";
import Chart6 from "./components/chart6/index";
import Chart7 from "./components/chart7/index";
import Chart8 from "./components/chart8/index";
export default {
  components: {
    Chart1,
    Chart2,
    Chart3,
    Chart4,
    Chart5,
    Chart6,
    Chart7,
    Chart8,
  },
};
</script>

<style scoped lang="scss">
.chart-main-container {
  background-image: url("/img/screen/backbgr.jpeg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  height: 100%;
  .chart-main-title {
    width: 100%;
    height: 60px;
    background-image: url("/img/screen/header.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: #fff;
    line-height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
  }
  .chart-main-content {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 15px;
    height: calc(100% - 60px);
    .model-box {
      height: 100%;
      display: grid;
      &::v-deep .chart-main-card {
        width: 100%;
        background-image: url("/img/screen/card.png");
        background-size: 100% 100%;
        background-repeat: no-repeat;
        color: #fff;
        padding: 15px;
        .title {
          height: 20px;
          font-size: 16px;
        }
        .chart-main-content {
          width: 100%;
          height: calc(100% - 35px);
        }
      }
    }
    .model-left,
    .model-right {
      width: calc(25% - 15px);
      height: 100%;
      grid-template-rows: repeat(3, calc((100% - 30px) / 3));
      grid-row-gap: 15px;
    }
    .model-center {
      width: 50%;
      height: 100%;
      grid-template-rows: 120px calc(100% - 135px);
      grid-row-gap: 15px;
    }
  }
}
</style>
